<?php 
$pageCss = array('detail');
$pageJs = array('jquery.min', 'p');
$this->load->view('header',array('modules'=>$modules,'pageTitle'=>$post['title'], 'pageCss'=>$pageCss));?>
<div class="container">
	<div class="main">
          	<div class="content">
            	<div class="post-image">
              	<img alt="<?php echo $post['title'];?>" src="<?php echo base_url($post['logo']);?>">
                </div>
                <div class="post-header">
              	<div class="post-time"><?php echo date('m/d H:i', $post['created_at']);?>
                </div>
                <h1 class="post-title"><?php echo $post['title'];?></h1>
              </div>
              <div class="article">
              	<?php echo $post['content'];?>
              </div>
              <div class="post-share">
	              <div class="share">
	              		<ul>
			                <li>
				                <a class="social-btn heart-btn" title="" href="#">
				                <i class="icon icon-heart"><img src="/images/good.png"></i>
				                <span>2</span></a>
			                </li>
			                <li>
				                <a class="social-btn share-btn" href="javascript:void(0)">
				                <i class="icon icon-share"><img src="/images/zhuanfa.png"></i>
				                </a>
			                </li>
	                   </ul>
	              </div>
	              <div class="bdsharebuttonbox">
                		<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                		<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                		<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                		<a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
                		<a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                		<a href="#" class="bds_more" data-cmd="more"></a>
                  </div>
              </div>
              <div class="post-comment">
                <h2 class="total">
                文章评论(<span>25</span>)
                </h2>
                <div class="pcomment-reply">
                	<div class="pcomment-form" href="#">
                    	<textarea  id="reply_body" class="textarea" style="height:120px; width:620px;" rows="20" placeholder="你怎么看？" name="content" data-widearea="enable" cols="40"></textarea>
                    </div>
                    <div class="pcomment-code"></div>
                    <div class="pcomment-bottom">
                    <!-- 
                    	<div class="left">
                        	<a class="overlay" href="javascript:void(0)">登录</a>后参与讨论
                        </div>
                        -->
                        <input type="hidden" id="pid" name='pid' value="<?php echo $post['id'];?>" >
                        <a class="submit-btn right" href="jascript:void(0);" id="subComment">提交评论</a>
                    </div>
                </div>
                <div class="pcomment-comments" id="allComments">
                    <?php if (isset($comments)): foreach ($comments as $comment):?>
                    <?php $this->load->view('p/comment', array('comment'=>$comment))?>
                    <?php endforeach; endif;?>
                </div>
              </div>
            </div>
            <div class="aside">
            	<div class="related">
                	<h3>相关文章</h3>
                	<div class="related-list">
                	<?php if (isset($sames)): foreach ($sames as $same):?>
                    	<div class="related-list-cf">
                        <a href="<?php echo site_url('p/'.$same['id'])?>"><?php echo $same['title'];?></a>
                        </div>
                    <?php endforeach; endif;?>
                    </div>
                </div>
                <div class="aside-social">
            		<p>微信公众平台：ieelab 或扫下方二维码：</p>
                     <div class="qrcode"><img src="/images/qrcode.jpg" alt="Qrcode"></div>
            	</div>
            </div>
       </div>
       <div class="main-right">
          <a href="#">
            <img width="280" height="250" alt="" src="images/image003.jpg" /> 
           </a>
           <div class="hot-article">
           	<h3 class="t-h2">
            <em>热门文章</em>   
            </h3>
            <ul>
            <?php if (isset($hot)): foreach ($hot as $item):?>
            <li class="view-list">
            	<h4><a target="_blank" href="<?php echo site_url('p/'.$item['id']);?>"><?php echo $item['title'];?></a></h4>
            </li>
             <?php endforeach; endif;?>
             </ul>
           </div>           
    </div>
    </div>
</div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
<?php $this->load->view('footer', array('pageJs'=>$pageJs));?>